home *** CD-ROM | disk | FTP | other *** search
- ******************** Indexing COMMAND FILE **********************
- * Indexes the costbase on job numbers and by supplier name.
- * Since several indexes are built, this takes a bit of time. Rather
- * than have the operator think that the computer is broken, we turn the
- * talk on so that dBASE III provides a running commentary that shows
- * it's working.
- **************************************************************************
- *
- USE Costbase
- GO BOTTOM
- Temp = STR(RECNO(),5)
- SET TALK ON
- *
- CLEAR
- @ 5,0 SAY 'Indexing ' + Temp + ' Costbase records'
- ? 'by JOB NUMBER to Costjobs.ndx:'
- ERASE Costjobs.ndx
- INDEX ON Job_Nmbr TO Costjobs
- ?
- ?
- ? 'Indexing ' + Temp + ' Costbase records'
- ? 'by SUPPLIER NAME to Costname.ndx:'
- ERASE Costname.ndx
- INDEX ON Name to Costname
- *
- USE Billings
- GO BOTTOM
- Temp = STR(RECNO(),5)
- ?
- ?
- ? 'Indexing ' + Temp + ' Billings records'
- ? 'by INVOICE NUMBER to Billings.ndx:'
- ERASE Billings.ndx
- INDEX ON Inv_Nmbr TO Billings
- ?
- ?
- ? 'Indexing ' + Temp + ' Billings records'
- ? 'by JOB NUMBER to Billjobs.ndx:'
- ERASE Billjobs.ndx
- INDEX ON Job_Nmbr TO Billjobs
- *
- USE Invoices
- GO BOTTOM
- Temp = STR(RECNO(),5)
- ?
- ?
- ? 'Indexing ' + Temp + ' Invoice records'
- ? 'by INVOICE NUMBER to Invoices.ndx:'
- ERASE Invoices.ndx
- INDEX ON Inv_Nmbr TO Invoices
- USE
- *
- SET TALK OFF
- RETURN